import requests

response = requests.post(
    "http://localhost:11434/api/chat",
    json={
        "model": "deepseek-r1:8b",
        "messages": [
            {
                "role": "user",
                "content": "生成小红书风格的文案，为 环保咖啡杯 这款产品做宣传"
            }
        ],
        "stream": False
    }
)

# 提取响应内容并转换为Markdown格式
result = response.json()
content = result['message']['content']

# 输出Markdown格式
print(f"```markdown\n{content}\n```")